import React from "react";

import  * as Icon from '@ant-design/icons';

function MyIcon(props) {
      const type=props.type;  
      if(type){
         const Icon1=Icon[type];
         return (<span>  <Icon1/> </span>);
      } else{
         return (<span></span>);
      }
}

export default MyIcon